package org.linlinjava.litemall.admin.web2.order.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.linlinjava.litemall.core.util.DateTimeUtil;
import org.linlinjava.litemall.db.domain.TOrder;

/**
 * 已关闭
 */
@ApiModel
public class OResp2 extends OResp {

    @ApiModelProperty("拍下时间")
    private String createdTime;
    @ApiModelProperty("关闭原因")
    private String closeReason;

    @Override
    protected void push0(TOrder order) {
        this.createdTime = order.getCreatedTime().format(DateTimeUtil.format);
        this.closeReason = order.getCloseReason();
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    public String getCloseReason() {
        return closeReason;
    }

    public void setCloseReason(String closeReason) {
        this.closeReason = closeReason;
    }
}
